package lab2;

import lab4TwiceTest.EmployeeVisitor;

public class Intern extends Employee{
    private int hours;

    private EnumDepartment department;

    public Intern(String name, EnumDepartment department){
        this.name = name;
        this.department = department;
    }

    public int getHours() {
        return hours;
    }

    public String getName(){
        return name;
    }

    public EnumDepartment getDepartment() {
        return department;
    }

    @Override
    public void setWorkingHours(int hours) {
        this.hours = hours;
    }

    @Override
    public void accept(VisitorInterface visitor) {
        visitor.visit(this);
    }

    @Override
    public void accept(EmployeeVisitor visitor) {
        visitor.visit(this);
    }
}
